#import "NSObject+CTTool.h"
@implementation NSObject (CTTool)
- (BOOL)checkIdType {
    if ([self isKindOfClass:[NSDictionary class]]) {
        NSDictionary *result = (NSDictionary *)self;
        return result.count == 0 ? NO : YES;
    } else if ([self isKindOfClass:[NSArray class]]) {
        NSArray *result = (NSArray *)self;
        return result.count == 0 ? NO : YES;
    } else {
        return NO;
    }
}
@end
